<template>
    <div>
        so'd'j'f
    </div>
</template>
<script>
    export default {
        components: {},
        data() {
            return {};
        },
        created() {},
        mounted() {
            const driver = new Driver('pallet', 1);
            window.driver = driver;
            driver.open().then(function () {
                var arrPlayers = []
                for (let i = 0; i < 100; i++) {
                    arrPlayers.push({
                        name: `韩梅梅${i}`,
                        sex: `女${i}`,
                        age: i % 3
                    })
                }
                driver.createTable({
                    name: 'player',
                    primaryKey: 'id',
                    autoIncrement: true,
                    indexes: [{
                        name: 'age_index',
                        column: 'age'
                    }, {
                        name: 'sex_index',
                        column: 'sex'
                    }, ],
                    data: arrPlayers
                })
                driver.createTable({
                    name: 'helloTo',
                    primaryKey: 'id',
                    autoIncrement: true,
                    indexes: [{
                        name: 'age_index',
                        column: 'age'
                    }, {
                        name: 'sex_index',
                        column: 'sex'
                    }, ],
                    data: arrPlayers
                })
            });
        },
        methods: {

        },
        watch: {},
    };
</script>

<style scoped></style>